﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFMINERP.Contracts.DataContracts;

namespace WCFMINERP.Contracts.InterFaces
{
    public static class EventMonitor
    {
        public static EventHandler<MonitorEventArgs> MonitoringSended;
        public static void Send(UploadInfo args)
        {
            if (null != MonitoringSended)
            {
                MonitoringSended(null, new MonitorEventArgs(args));
            }
        }
    }

    public class MonitorEventArgs : EventArgs
    {
        public UploadInfo args { get; private set; }
        public MonitorEventArgs(UploadInfo inArgs)
        {
            this.args = inArgs;
        }

    }
}
